package com.lggry.moviedemo;

public class Test {
    public static void main(String[] args) {
        //目标：完成面向对象的综合案例
        //1.设计电影类Movie，以便创建电影对象，封装电影数据
        //2.封装系统中的全部电影数据。（自己造一些数据）
        Moive[] movies = new Moive[6];
        movies[0] = new Moive(1, "《大话西游》", 20.5, "吴孟达");
        movies[1] = new Moive(2, "《盗梦空间》", 18.5, "丹·Lang");
        movies[2] = new Moive(3, "《星际穿越》", 16.5, "克里斯托弗·诺兰");
        movies[3] = new Moive(4, "《让子弹飞》", 16.5, "姜文");
        movies[4] = new Moive(5, "《夏洛特烦恼》", 16.5, "沈腾");
        movies[5] = new Moive(6, "《战狼2》", 16.5, "吴京");

        //3.创建电影操作对象，专门负责电影数据的业务操作
        MovieOperator movie = new MovieOperator(movies);
//        movie.printAllMovie();
        movie.searchMovieById();
    }
}
